package com.choosefine.it.company.service;

import java.util.Map;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.company.model.CompanyManagerCollection;
import com.choosefine.it.manager.model.ManagerFindprojectInfo;
import com.github.pagehelper.Page;


/**
 * 
 * @author chenjian
 * @date 2016-12-3 下午2:28:05
 */
public interface CompanyManagerCollectionService{
	/**
	 * 收藏项目承包人信息
	 * @author chenjian
	 */
	public int saveCompanyManagerCollection(CompanyManagerCollection companyManagerCollection);
	/**
	 * 建筑公司收藏的所有项目承包人
	 * @author chenjian
	 */
	@SuppressWarnings("rawtypes")
	public Page<CompanyManagerCollection> getCompanyManagerCollection(String userCode,PageDTO page);
	/**
	 * 根据发布id查询项目经理求项目信息
	 * @author chenjian
	 */
	public ManagerFindprojectInfo selectManagerFindprojectById(Integer publishId);
	/**
	 * 取消收藏
	 * @author chenjian
	 */
	public int cancleManagerCollectionById(CompanyManagerCollection companyManagerCollection);
	/**
     * 根据发布id及用户code查询收藏信息
     * @author chenjian
     */ 
	public CompanyManagerCollection findCompanyManagerCollectionByCodeAndId(Map<String, Object> params);
	/**
     * 建筑公司重新收藏，更新收藏信息
     * @author chenjian
     */ 
	public int updateCompanyManagerCollection(CompanyManagerCollection companyManagerCollection);
	
}
